package com.wxg.service.impl;

import com.wxg.dao.mysql.mapper.UniversityMapper;
import com.wxg.service.UniversityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by void on 2019/11/7.
 */
@Slf4j
@Service
public class UniversityServiceImpl implements UniversityService {

    @Autowired
    private UniversityMapper universityMapper;

    @Override
    public void sqlTest() {
        //测试mybatis使用复合函数
        //使用count函数得到的list对象一定有一条,count的字段为0,其他为null
//        List<University> countList = universityMapper.countTest();

        //使用sum函数得到的list对象一定有一条空记录,但是list的size=1
//        List<University> sumList = universityMapper.sumTest();


    }
}
